<link rel="stylesheet" type="text/css" href="/mycss/mycss.css" />

标签上加样式:<input type="text" style="width: 200px;height: 20px; color: red">
<br>
标签上加样式2:<input type="text" style="width: 200px;height: 20px; color: red">
<br>
----------------------------------------标签选择器----------------------------------
<br>
h1的标签:<h1 style="color: green">h1的标签</h1>
h1的标签2:<h1>h1的标签2</h1>
<br>
h2的标签:<h2 id="h2" class="h2Class">h2的标签</h2>
strong标签:<strong>strong标签</strong>
strong标签:<strong>strong标签</strong>
strong标签:<strong>strong标签</strong>
---------------------------------------派生选择器-------------------------------------
<br>
<div>
    strong标签2:<strong>strong标签2</strong>
</div>
<div>
    <ui>
        strong标签3:<strong>strong标签3</strong>
    </ui>
</div>
<br>
---------------------------------------派生class选择器-------------------------------------
<div class="divClass">
    <span class="spanClass">我是派生class选择器</span>
</div>
<br>
---------------------------------------id选择器---------------------------------------
<br>
<span id="span">我是id选择器</span>
<br>
---------------------------------------类选择器---------------------------------------
<br>
<span class="myClass">我是类选择器</span>
<div class="myClass">好好学习</div>
<br>
---------------------------------------继承---------------------------------------
<br>
<h3>
我是继承的样式
</h3>
<br>
---------------------------------------边框、文本位置---------------------------------------
<br>
<table>
    <tr><th>标题1</th><th>标题2</th></tr>
    <tr><td>单元格1</td><td>单元格2</td></tr>
</table>
<br>
---------------------------------------top、left、right、bottom---------------------------------------
<div class="position">左面百分之50，上面百分之20</div>
<br>
---------------------------------------float---------------------------------------
<div style="float: left">float1</div>
<div style="float: right;display: inline">float2</div>
<div style="margin: 30px 0 0 100px;">边距</div>
<p style="width: 300px;background-color: #31b0d5;padding-top: 10px;padding-left: 100px;padding-bottom: 20px;padding-right:100px ">这是一个指定填充边距的段落。</p>
<style type="text/css">
    h1{
        color: #a94442;
    }
    #h2{
        color: red;
    }
    #h2{
        color: grey;
    }
    .h2Class{
        color: #3c763d;
    }
</style>